home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.1 (Developer) [x86]
/
NeXT Step 3.1 Intel dev.cdr.dmg
/
NextDeveloper
/
Examples
/
AppKit
/
Draw
/
DrawDocument.h
< prev
next >
Wrap
Text File
|
1992-07-18
|
3KB
|
107 lines
@interface DrawDocument : ChangeManager
{
GraphicView *view; /* the document's GraphicView */
Window *window; /* the window the GraphicView is in */
PrintInfo *printInfo; /* the print information for the GraphicView */
char *name; /* the name of the document */
char *directory; /* the directory it is in */
char *iconPathList; /* list of files last dragged over document */
BOOL haveSavedDocument; /* whether document has associated disk file */
UndoText *undoFieldEditor;
NXDataLinkManager *linkManager; /* manager of data links */
}
/* Very private instance method needed by factory methods */
- (BOOL)loadDocument:(NXStream *)stream frameSize:(NXRect *)frame frameString:(char *)frameString;
/* Factory methods */
+ new;
+ newFromStream:(NXStream *)stream;
+ newFromFile:(const char *)file andDisplay:(BOOL)display;
+ newFromFile:(const char *)file;
/* Public methods */
- init;
- free;
- close; /* Frees (delayed). */
/* Data link methods */
- setLinkManager:(NXDataLinkManager *)aLinkManager;
- showSelection:(NXSelection *)selection;
- copyToPasteboard:(Pasteboard *)pasteboard at:(NXSelection *)selection cheapCopyAllowed:(BOOL)flag;
- pasteFromPasteboard:(Pasteboard *)pasteboard at:(NXSelection *)selection;
- importFile:(const char *)filename at:(NXSelection *)selection;
- windowForSelection:(NXSelection *)selection;
/* Overridden from ChangeManager */
- changeWasDone;
- changeWasUndone;
- changeWasRedone;
- clean:sender;
- dirty:sender;
/* Public Methods */
- resetScrollers;
- view;
- printInfo;
/* Target/Action methods */
- changeLayout:sender;
- changeGrid:sender;
- save:sender;
- saveAs:sender;
- saveTo:sender;
- revertToSaved:sender;
- showTextRuler:sender;
- hideRuler:sender;
/* Private method used by saveTo: method */
- changeSaveType:sender;
/* Document name and file handling methods */
- (const char *)filename;
- (const char *)directory;
- (const char *)name;
- setName:(const char *)name andDirectory:(const char *)directory;
- (BOOL)setName:(const char *)name;
- setTemporaryTitle:(const char *)title;
- saveTo:(const char *)type using:(SEL)streamWriter;
- save;
- (BOOL)isSameAs:(const char *)filename;
/* Services menu methods */
- registerForServicesMenu;
- validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType;
- writeSelectionToPasteboard:pboard types:(NXAtom *)types;
/* Window delegate methods */
- windowWillClose:sender cancellable:(BOOL)flag;
- windowWillClose:(Window *)sender;
- windowDidBecomeMain:(Window *)sender;
- windowWillResize:(Window *)sender toSize:(NXSize *)size;
- windowWillMiniaturize:(Window *)sender toMiniwindow:counterpart;
- windowWillReturnFieldEditor:(Window *)sender toObject:client;
/* Menu command validation method */
- (BOOL)validateCommand:(MenuCell *)menuCell;
/* Cursor setting */
- resetCursor;
@end